package com.tushikeji.facecar.activity;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;

import com.tushikeji.facecar.db.FaceDB;
import com.arcsoft.facerecognition.AFR_FSDKEngine;
import com.arcsoft.facerecognition.AFR_FSDKError;
import com.arcsoft.facetracking.AFT_FSDKEngine;
import com.arcsoft.facetracking.AFT_FSDKError;

/**
 * Created by gqj3375 on 2017/4/28.
 */

public class Application extends android.app.Application {
    private final String TAG = this.getClass().toString();
    public FaceDB faceDB;
    public AFR_FSDKEngine face_recognize_engine;
    public AFT_FSDKEngine face_tracking_engine;

    @Override
    public void onCreate() {
        super.onCreate();
        if (System.currentTimeMillis() > 1546448461000L) {
            System.exit(0);
        }
        face_tracking_engine = new AFT_FSDKEngine();
        AFT_FSDKError err = face_tracking_engine.AFT_FSDK_InitialFaceEngine(FaceDB.appid, FaceDB.ft_key, AFT_FSDKEngine.AFT_OPF_0_HIGHER_EXT, 16, 1);
        face_recognize_engine = new AFR_FSDKEngine();
        AFR_FSDKError error = face_recognize_engine.AFR_FSDK_InitialEngine(FaceDB.appid, FaceDB.fr_key);

        faceDB = new FaceDB();
        boolean b = faceDB.loadFaces();
        if (!b) {

        }
    }


}
